"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateCheckbox = exports.generateSelectWithDefault = exports.generateSelect = exports.generateInput = void 0;
exports.generateInput = (name, message) => {
    return (defaultAnswer) => ({
        type: 'input',
        name,
        message,
        default: defaultAnswer,
    });
};
exports.generateSelect = (name) => {
    return (message) => {
        return (choices, defaultAnswer) => ({
            type: 'list',
            name,
            message,
            choices,
            default: defaultAnswer,
        });
    };
};
exports.generateSelectWithDefault = (name) => {
    return (message) => {
        return (choices) => {
            return (defaultAnswer) => ({
                type: 'list',
                name,
                message,
                choices,
                default: defaultAnswer,
            });
        };
    };
};
exports.generateCheckbox = (name) => {
    return (message) => {
        return (choices) => {
            return (defaultAnswer) => ({
                type: 'checkbox',
                name,
                message,
                choices,
                default: defaultAnswer,
            });
        };
    };
};
